package com.example.yiba8.myapplication;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;

import com.example.yiba8.base.BaseFragment;

/**
 * Created by ${zyj} on 2016/1/14.
 */
public class Fragment1 extends BaseFragment implements View.OnClickListener {

    private View view ;
    private View btn ;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        super.onCreateView(inflater, container, savedInstanceState);
        Toast.makeText( getActivity() , "dd1" + "onCreateView"   , Toast.LENGTH_SHORT).show();
        return view ;
    }

    @Override
    public View inflaterView(LayoutInflater inflater, ViewGroup container, Bundle bundle) {
        view = inflater.inflate(R.layout.fragment1 , container, false) ;
        return  view ;
    }

    @Override
    public void initView(View fragmentRootView) {
        btn = fragmentRootView.findViewById( R.id.btn ) ;
        btn.setOnClickListener( this );
    }

    @Override
    public void initDataFromThread() {

    }

    @Override
    protected void lazyLoad(int number) {
        Toast.makeText( getActivity() , "dd1" + isVisible + "  次数" + number  , Toast.LENGTH_SHORT).show();
    }

    @Override
    public void onClick(View v) {
        switch ( v.getId() ){
        }
    }
}
